#!/bin/bash
v1='src\/'; v2='TagDoc.xml'
for i in `ls src/*TagDoc.xml`
do
   val=`echo $i | sed -e "s/.*${v1}//;s/${v2}.*//"`
   echo "Processing$val"
   java net.sf.saxon.Query -o:out/${val}TagDoc.xq -q:../xquery/impl/doc2xq-simple.xq INPUT=../../test/src/${val}TagDoc.xml
done
